/*
 * @Descripttion:
 * @version:
 * @Date: 2021-04-20 11:06:21
 * @LastEditors: mofan 1358526162@qq.com
 * @LastEditTime: 2023-04-20 14:24:11
 * @Author: huzhushan@126.com
 * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
 * @Github: https://github.com/huzhushan/vue3-element-admin
 * @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
 */
import request from '@/utils/request'

/*
 * @function 周财务数据+市场一部销售数据
 * @description 
 **/
export const getZylb = params => {
  return request({
    url: '/gaoguan/zylb',
    method: 'get',
    params,
  })
}

/*
 * @function 项目树形
 * @description 获取项目列表数据
 **/
export const getPtree = params => {
  return request({
    url: '/gaoguan/get-project-tree-list',
    method: 'get',
    params,
  })
}

/*
 * @function 项目进度
 * @description 获取项目进度列表数据
 **/
export const getProject = params => {
  return request({
    url: '/gaoguan/get-project-schedule-list',
    method: 'get',
    params,
  })
}

/*
 * @function 运营部
 * @description 获取运营部销售数据
 **/
export const getYysx = params => {
  return request({
    url: '/gaoguan/yybxsqk',
    method: 'get',
    params,
  })
}

/*
 * @function 市场二部
 * @description 获取市场二部销售数据
 **/
export const getTwoxs = params => {
  return request({
    url: '/gaoguan/scebxsqk',
    method: 'get',
    params,
  })
}

/*
 * @function 市场一部部门列表
 * @description 获取市场一部部门列表数据
 **/
export const getDqxl = params => {
  return request({
    url: '/gaoguan/dqxl',
    method: 'get',
    params,
  })
}

/*
 * @function 市场一部部门列表
 * @description 获取市场一部部门列表数据
 **/
export const getDeplist = params => {
  return request({
    url: '/gaoguan/get-department-list',
    method: 'get',
    params,
  })
}

/*
 * @function 市场一部运营情况
 * @description 获取市场一部运营数据
 **/
export const getScyb = params => {
  return request({
    url: '/gaoguan/scybyyqk',
    method: 'get',
    params,
  })
}

/*
 * @function 合成厂库存
 * @description 获取合成厂库存数据
 **/
export const getHckc = params => {
  return request({
    url: '/gaoguan/hcckcqk',
    method: 'get',
    params,
  })
}

/*
 * @function 制剂厂库存
 * @description 获取制剂厂库存数据
 **/
export const getZjkc = params => {
  return request({
    url: '/gaoguan/zjckcqk',
    method: 'get',
    params,
  })
}

/*
 * @function 获取销售情况
 * @description 获取销售数据
 **/
export const getSxdata = params => {
  return request({
    url: '/gaoguan/xsqk',
    method: 'get',
    params,
  })
}

/*
 * @function 获取销售公司
 * @description 获取销售公司列表
 **/
export const getCompany = params => {
  return request({
    url: '/gaoguan/get-company-list',
    method: 'get',
    params,
  })
}

/*
 * @function 收付款
 * @description 获取收付款数据
 **/
export const getSfk = params => {
  return request({
    url: '/gaoguan/sfkqk',
    method: 'get',
    params,
  })
}

/*
 * @function 大区销量同比
 * @description 获取当前用户菜单列表
 **/
export const GetSalesVolume = params => {
  return request({
    url: '/api/gaoguan/sales-tb-last',
    method: 'get',
    params,
  })
}

/*
 * @function 获取菜单列表
 * @page 页码
 * @offset 每页条数
 **/
export const menusList = params => {
  return request({
    url: '/api/menu/get-menu-list',
    method: 'get',
    params,
  })
}

/*
 * @function 树形菜单列表
 **/
export const menusTree = params => {
  return request({
    url: '/api/menu/get-menu-tree',
    method: 'get',
    params,
  })
}